#ifndef FREQUENCE_DECODE_H
#define FREQUENCE_DECODE_H
#include "common.h"

typedef struct
{
	UINT16 u16FrequencyOut1;//1s 计算Edge数量计算得到
	UINT16 u16FrequencyOut2;//2Edge 中间的时间得到
	UINT16 u16_1s_Cnt;
	UINT16 u16_1s_EdgeNumCnt;
	UINT16 u16_2Edge_TimeCnt;
	UINT8 u8DigitalInputLast;
}structFrequencyDecode;
extern structFrequencyDecode stFrequencyDecodeEgine;
extern void vProcFrequencyDecode(structFrequencyDecode *pStFrequencyDecode,UINT8 u8DigitalInput);
#endif
